package river_city_ransom.implementations;

import exceptions.ComposantError;
import river_city_ransom.services.Dimensions;
import river_city_ransom.services.Gangster;


public class Gangster_I extends Personnage_I implements Gangster {
	public Gangster_I(String n, Dimensions d, int f, int pv) {
		super();
		try {
			init(n, d, f, pv);
		}
		catch(ComposantError e) {
			System.err.println(e.getMessage());
		}
	}
	
	/** ________________________________________________________ CONSTRUCTORS */
	@Override
	public void init(String n, Dimensions d, int f, int pv) throws ComposantError {
		// Equipable
		dimensions = d;
		estEquipable = false;
		estPorte = false;
		estJete = 0;
		position = new Position_I(0, 0, 0);
		// Personnage
		nom = n;
		force = f;
		maxPointsDeVie = pv;
		pointsDeVie = pv;
		estVaincu = false;
		choseEquipee = null;
		estEquipe = false;
		versLaDroite = false;
		estGele = 0;
	}
}
